// 直接导入 configureStore 创建一个总仓库
import { configureStore } from '@reduxjs/toolkit'
import countSlice from './counterSlice';
import toastSlice from './toastSlice';

const store = configureStore({
  reducer: {
    // 对分仓库进行注册
    countSlice,
    toastSlice
  }
})

export default store;